<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="../../../css/admin.css"/>
<script type="text/javascript" src="../../../js/jquery.js"></script>
<script type="text/javascript" src="../../../js/changebgcolor.js"></script>
<script type="text/javascript" src="../../../js/calendar.js"></script>
<script type="text/javascript" src="../js/merchandise_init.js"></script>
<script type="text/javascript" src="js/edit_merchandise_type.js"></script>
<script type="text/javascript">
window.onload = function (){
	document.title = '物品类别信息';
	create_parent_type_list();
	
	$('#merchandise_type_id').val('');

	var addstr = document.URL;
	var merchandise_type_id = addstr.split('?')[1];
	if(merchandise_type_id>0){
		selectMerchandiseType(merchandise_type_id);
	}
};
function on_reset(){
	var merchandise_type_id = $('#merchandise_type_id').val();
	selectMerchandiseType(merchandise_type_id);
};
</script>
</head>

<body>
<input type="hidden" id="merchandise_type_id" />
<form action="javascript:void(0)">
  <table class="list" border="0" cellspacing="1" width="230" style="position:absolute; left:50%; margin-top:10px; margin-left:-115px; text-align:center;" >
    <tr><td class="list" width="60" >父类</td><td class="list" width="" ><select style="width:100%;"  id="parent_type" ></select></td></tr>
    <tr><td class="list" width="60" >名称</td><td class="list" width="" ><input  style="width:158px;" type="text" id="merchandise_type_name" /></td></tr>
    <tr><td class="list" colspan="2" ><input type="button" value="重置" onclick="on_reset()" />&nbsp;&nbsp;&nbsp;<input type="button" value="提交" onclick="saveOrUpdate()" class="submit" /></td></tr>  
  </table>
</form>
</body>
</html>
